<p-dialog header="{{title}}" [(visible)]="display" modal="modal" [responsive]="true" [width]="500" [minWidth]="200" (onHide)="closeBaseEditMask(false)">
  <!--<p-panel header="{{title}}">-->
    <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
      <form [formGroup]="person" class="form-horizontal">
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-2"></div>
          <div class="ui-grid-col-8 addr">
            <label for="" >基站id：</label>
            <input class="cursor_not_allowed"
                   type="text" formControlName="remark1"
                   pInputText *ngIf="state ==='add'" id="" [style.width.%]="70"
            />
            <input class="cursor_not_allowed"
                   type="text" formControlName="remark1"
                   pInputText [(ngModel)]="currentBase.remark1" *ngIf="state ==='update'" id="" [style.width.%]="70"
            />

          </div>
        </div>
        <div class="ui-grid-row margin-bottom-1vw"
             *ngIf="!person.controls['remark1'].untouched && !person.controls['remark1'].valid">
          <div class="ui-grid-col-6">
            <div class="ui-message ui-messages-error ui-corner-all"  *ngIf="!person.hasError('maxLength','remark1')">
              <i class="fa fa-close"></i>
              不超过100字符
            </div>
          </div>
        </div>


        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-2"></div>
          <div class="ui-grid-col-8 addr">
            <label for="" >通信地址：</label>
            <input class="cursor_not_allowed"
                   type="text" pInputText *ngIf="state ==='add'" id="" [style.width.%]="70"
            />
          </div>
        </div>

        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-2"></div>
          <div class="ui-grid-col-8 addr">
            <label for="" >x坐标：</label>
            <input class="cursor_not_allowed"
                   type="text" pInputText *ngIf="state ==='add'" id="" [style.width.%]="70"
            />
          </div>
        </div>

        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-2"></div>
          <div class="ui-grid-col-8 addr">
            <label for="" >y坐标：</label>
            <input class="cursor_not_allowed"
                   type="text" pInputText *ngIf="state ==='add'" id="" [style.width.%]="70"
            />
          </div>
        </div>

        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-8"></div>
          <div class="ui-grid-col-2 padding-tblr">
            <button pButton type="submit" label="提交" (click)="formSubmit(false)"></button>
            <!--<button pButton type="submit" label="确认" (click)="formSubmit(false)" [disabled]="!person.controls['perName'].valid || !person.controls['pid'].valid || !person.controls['pwd'].valid || !person.controls['mobile'].valid" *ngIf="state ==='add'"></button>
            <button pButton type="submit" label="确认" (click)="formSubmit(false)" [disabled]="!person.controls['perName'].valid || !person.controls['pid'].valid || !person.controls['mobile'].valid" *ngIf="state ==='update'"></button>-->
          </div>
          <div class="ui-grid-col-2 padding-tblr">
            <button pButton type="button" label="取消" (click)="closeBaseEditMask(false)"></button>
          </div>
        </div>
      </form>
    </div>
  <!--</p-panel>-->
</p-dialog>

